using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class ComeAndBackButtonMethod : MonoBehaviour
{
    public bool comeOrBack = true;
    public GameObject workPanel;

    RectTransform workPanel_RectT;
    // Start is called before the first frame update
    void Start()
    {
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    public void ClickComeOrBackButton()
    {
        if (comeOrBack)
        {
            this.GetComponent<RectTransform>().anchoredPosition = new Vector3(80, 700, 0);
            Debug.Log(this.GetComponent<RectTransform>().anchoredPosition);
            comeOrBack = false;
        }
        else
        {
            this.GetComponent<RectTransform>().anchoredPosition = new Vector3(80, 240, 0);
            Debug.Log(this.GetComponent<RectTransform>().anchoredPosition);
            comeOrBack = true;
        }
    }

}
